home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / COBOL / H309.ZIP / COBOL6.TXT < prev    next >
Text File  |  1993-07-08  |  3KB  |  75 lines

  1. Notes on COBOL6
  2. by Neil Jennings, TRANTOR Ltd
  3.  
  4.  
  5. INSTALLATION
  6.  
  7.        Copy UNARJ.EXE and COBOL6.ARJ to the current directory and
  8.        use
  9.           UNARJ e COBOL6
  10.        to extract the files. Then refer to READ.ME.
  11.        There is a further archive (COBOL6-2.ZIP) which contains sample
  12.        COBOL source. It can be expanded by using PKUNZIP (not supplied)
  13.  
  14. PREPARING THE SOURCE
  15.  
  16.        This is a useful COBOL compiler for learners and for small
  17.        programs, and works well.
  18.  
  19.        However, it has a number of minor restrictions, for example
  20.  
  21.           It does not accept the noise word THEN, as in IF-THEN-ELSE
  22.  
  23.           Each 01 level is limited to 4095 bytes
  24.  
  25.           The number of occurrences of an array element is restricted
  26.  
  27.  
  28.        The compiler occasionally has difficulty in recognising
  29.        the end of a source file. Symptoms include the appearance of
  30.        garbage or duplicated code at the end of the compiler
  31.        listing, and/or errors about invalid characters in column 7
  32.        etc.
  33.  
  34.        This can be overcome by using a HEX editor to place one or
  35.        more hex '1a' characters at the end of the text. You may also
  36.        be able to get the same effect by using holding down ALT and
  37.        pressing 0 2 6 on the NUMERIC keypad (NOT the top line of the
  38.        keyboard), if your text editor allows this method of entry of
  39.        non-keyboard characters.
  40.  
  41.        Note that when COBFORM creates a reformatted source, it
  42.        automatically inserts a line containing this character at
  43.        the end of the source file, so there should be no problem
  44.        unless you subsequently edit that file.
  45.  
  46. COMPILING
  47.  
  48.        The compiler only gives you 25 compiles, then you have to
  49.        reinstall. This can be overcome by copying the file COBOL.LIC
  50.        to a backup, and restoring before each compile.
  51.        (COBOL650 does not have this restriction)
  52.  
  53.        It also expects to find its files on drive A, so you must
  54.        use ASSIGN A C (assuming that is is on C:) before compiling.
  55.  
  56.        Note that ASSIGN seems to have been deleted from MS-DOS 6
  57.  
  58.        Try using the DPATH utility supplied with COBOL650 instead?
  59.  
  60. LINKING
  61.  
  62.        COBOL6 only produces OBJ files - you need a linker to link them
  63.        and create an executable (EXE) file.
  64.  
  65.        Example:
  66.  
  67.           LINK  a+b+c;
  68.  
  69.        will link a.obj, b.obj and c.obj giving a.exe
  70.  
  71.        LINK has many more parameters, refer to a manual for details. it
  72.        may need to be given the name of the COBOL library to include
  73.        library modules.
  74.  
  75.